// components/comment-item/comment-item.ts
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Object,
      value: {}
    },
    isChildren: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    replyComments () {
      this.triggerEvent('replyComments', {
        info: this.properties.info
      });
    },
    handleReplyComments (e) {
      this.triggerEvent('replyComments', {
        info: e.detail.info
      });
    }
  }
})